﻿using FireChat.Server.Database.Manager;
using FireChat.Server.Session.Receiver;
using FireChat.Share.Web.Actions;
using FireChat.Share.Web.Model.Query.Account;
using FireChat.Share.Web.Package;
using FireChat.Share.Web.Util;

namespace FireChat.Server.Session.Actions.Account;


/// <summary>
/// 注册账号
/// </summary>
internal class RegisterAction : ServerAction<RegisterQuery>
{
    public override ServertActions Type => ServertActions.Register;

    public override bool IsVerifyAccountToken => false;

    protected override ServerPackage ActionExcute(PackageReceiver receiver, RegisterQuery query)
    {
        return receiver.Register(query);
    }
}
